package com.fz.song.mcos.exceptions;

import com.fz.song.mcos.enums.CodeEnum;
import lombok.Data;

/**
 * ClassName:    McosException
 * Package:    com.fz.song.mcos.exceptions
 * Description:
 * Datetime:    2021/1/28   18:23
 * Author:   songfazhun
 */
@Data
public class McosException extends Exception {

    private int code;

    public McosException(CodeEnum codeEnum) {
        super(codeEnum.getMsg());
        this.code = codeEnum.getCode();
    }
}
